<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>article-YuekeBlog</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" th:href="@{/res/layui/css/layui.css}">
	<link rel="stylesheet" th:href="@{/res/static/css/mian.css}">
</head>
<body class="lay-blog">
		<!--顶栏取自common里的fragment-->
		<div th:insert="~{front/commons/common::topBar(nav='article.html')}"></div>
		<!--中间栏：内容-->
		<div class="container-wrap">
			<div class="container container-message">
				<div class="contar-wrap" id="contar-wrap">
					<form class="layui-form" th:action="@{/newArticle}">
						<h4 class="item-title">
							<p><i class="layui-icon layui-icon-speaker"></i><span>你可以在这里分享你的心情或者博客</span></p>
						</h4>
						<form class="layui-form" action="">
							<h4 class="item">
								<p><span>标题</span></p>
							</h4>
							<div class="layui-form-item">
								<input type="text" style="font-size: small" name="title" autocomplete="off" placeholder="这里输入标题" class="layui-input" required>
							</div>
							<h4 class="item">
								<p><span>内容</span></p>
							</h4>
							<div class="layui-form-item layui-form-text">
								<textarea name="content" class="layui-textarea" style="resize:none" placeholder="这里输入内容" required></textarea>
							</div>
							<div class="item-btn">
								<input type="submit" class="layui-btn layui-btn-normal" id="item-btn" value="好了"></input>
							</div>
						</form>
					</form>
				</div>
			</div>
		</div>
		<!--底栏，取自common里的fragment-->
		<div th:insert="~{front/commons/common::bottomBar}"></div>
	<script th:src="@{/res/layui/layui.js}"></script>
	<script>
		layui.config({
		  base: '/res/static/js/'
		}).use('blog');	
	</script>
</body>
</html>